<template>
  <div class="header-container">
    <div class="top-bar"></div>
    <h1 class="logo">
      <router-link style="text-decoration: none; color: white;" :to="{ path: '/' }">
        Logistica
      </router-link>
    </h1>
    <div class="menu-box">
      <ul>
        <li>HOME</li>
        <li>ABOUT</li>
        <li>SERVICES</li>
        <li>PAGES<el-icon><ep-ArrowDown/></el-icon></li>
        <li>CONTACT</li>
      </ul>
      <div class="tel-box">
        <el-icon><ep-Headset /></el-icon>
        +012 345 6789
      </div>
    </div>
  </div>
</template>

<script setup>
</script>

<style lang="scss" scoped>
$base-color: #ff3e41;
$header-height: 67px;
.header-container {
  position: relative;
  width: 100%;
  height: $header-height;

  .top-bar {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: $base-color;
  }

  .logo {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    height: 100%;
    background-color: $base-color;
    display: inline-block;
    font-size: 18px;
    line-height: $header-height;
    padding: 0px 47px;
    color: white;
    box-sizing: border-box;
  }

  .menu-box {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    height: $header-height;
    display: flex;

    svg {
          vertical-align: middle;
          display: inline-block;
          font-size: 0.75em;
    }

    ul {
      display: flex;
      height: 100%;

      li:nth-child(1) {
        border-top: 4px solid white;
      }

      li {
        vertical-align: middle;
        border-top: 4px solid $base-color;
        height: 100%;
        box-sizing: border-box;
        list-style: none;
        display: inline-block;
        line-height: $header-height;
        padding: 0px 12px;
      }
    }

    .tel-box {
      border-top: 4px solid $base-color;
      height: 100%;
      line-height: $header-height;
      font-size: 20px;
      font-weight: bold;
      margin-right: 27px;

      .el-icon {
        color: $base-color;
        font-size: 32px;
        margin-bottom: 3px;
        vertical-align: middle;
      }
    }
  }
}
</style>
